// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

export async function getCategoryList(params: any) {
  return request('/api/v1/category/getCategoryList', {
    method: 'GET',
    params: {
      ...params,
    },
  });
}

/** 添加分类 */
export async function createCategory(params: any) {
  return request('/api/v1/category/createCategory', {
    method: 'POST',
    data: params,
  });
}

/** 更新分类 */
export async function updateCategory(params: any) {
  return request('/api/v1/category/updateCategory', {
    method: 'POST',
    data: params,
  });
}
/** 删除分类 */
export async function deleteCategory(params: any) {
  return request('/api/v1/category/deleteCategory', {
    method: 'POST',
    params: params,
  });
}
/** 移动分类 */
export async function moveCategory(params: any) {
  return request('/api/v1/category/moveCategory', {
    method: 'POST',
    params: params
  });
}
/** 获取分类列表(不含特色服务) */
export async function getPhoCatListWithoutSpe() {
  return request('/api/v1/category/getPhoCatListWithoutSpe', {
    method: 'GET'
  });
}
/** 移动分类列 */
export async function moveSecCategory(params: any) {
  return request('/api/v1/category/moveSecCategory', {
    method: 'POST',
    params: params
  });
}
